﻿

if(WIN32)
    add_executable(ar8030_test ar8030_test.cpp)
    target_link_libraries(ar8030_test PUBLIC ar8030_client)
    target_link_directories(ar8030_test PUBLIC ${PROJECT_SOURCE_DIR}/com)
    target_link_libraries(ar8030_test PRIVATE com)
    INSTALL(TARGETS ar8030_test
        RUNTIME DESTINATION bin
    )

    add_executable(ar8030_video ar8030_video.cpp)
    target_link_libraries(ar8030_video PUBLIC ar8030_client)
    target_link_directories(ar8030_video PUBLIC ${PROJECT_SOURCE_DIR}/com)
    target_link_libraries(ar8030_video PRIVATE com)
    INSTALL(TARGETS ar8030_video
        RUNTIME DESTINATION bin
    )

    add_executable(singal_test singal_test.cpp)
    target_link_libraries(singal_test PUBLIC ar8030_client)
    target_link_directories(singal_test PUBLIC ${PROJECT_SOURCE_DIR}/com)
    target_link_libraries(singal_test PRIVATE com)
    INSTALL(TARGETS singal_test
        RUNTIME DESTINATION bin
    )

    INSTALL(FILES signal_generator.py
        DESTINATION bin
    )
endif()
